package com.xiaoyu.cloudmusic.service;

import com.xiaoyu.cloudmusic.pojo.*;
import com.xiaoyu.cloudmusic.resp.PlayList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlayListService {
    public List<Recommend> getRandRecommend(int num);
    public PlayListDetail getPlayListDetail(int id);
    public List<Song> getPlayListSong(int id);
    public PlayListDetail getLastPlayListDetail();
    public int addPlayList(String uuid,int id, String title, String createTime,String isPublic);
    public int updateMyPlayList(PlayListDetail playListDetail);
    public int updateCover(String coverImgUrl,String listId);
    public int deletePlaylistById(int id);
    public int delPlayListTracksByListId(int listId);
    public int addSongByID(int musicId,int playlistId );
    public int deleteSongByID(int musicId,int playlistId );
    public Playlisttrack findTrackInList(int musicId, int playlistId);
    public int addRecommend(Recommend recommend);
    public int updateRecommend(Recommend recommend);
    public void delRecommend(int id);
    public int addComment(CommentInfo commentInfo);
    public int addReply(CommentInfo commentInfo);
    public List<CommentInfo> getAllComment(String uuid,int listId);
    public int delComment(int id);
    public boolean support(int id,int isSupport,String uuid,int commentid);
    public List<PlayList> getUserPublicList(String uuid);
    public int addFavorites(String uuid,Integer listid);
    public int removeFavorites(String uuid,Integer listid);
    public List<PlayList> getUserFavorites(String uuid);
    public boolean isFavorites(String uuid,int id);
//    public CommentInfo getComment(String id);
//    public List<CommentInfo> getAllComment(int listId);
//    public List<ReplyInfo> getAllReply(String id);
//    public int delCommentOrReply(CommentParam commentParam);
//    public int support(CommentParam commentParam);
//    public int noSupport(CommentParam commentParam);

}
